package ooday02;

public class TeacherHomework extends PersonHomework {
    String salay;

    TeacherHomework() {
    }

    TeacherHomework(String name, int age, String address, String salay) {
        super(name, age, address);
        this.salay = salay;
    }


    void sayhi() {
        System.out.println("大家好我叫" + name + "年龄" + age + "岁了" + "家住在" + address + "工资是" + salay);
    }

    void teach() {
        System.out.println(name + "正在教书");
    }


}
